/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package function;

import java.io.File;
import java.util.ArrayList;

/**
 *
 * @author asfeor
 */
public class Trees {
    ArrayList <String> List = new ArrayList<String>();
    public ArrayList <String> Tree(String dir){
        
        File f=new File(dir);
      try{
        String[] sDirList=f.list();
        int i;
        for (i=0; i<sDirList.length; i++){
            File f1 = new File(dir+File.separator+sDirList[i]);
            List.add(f1.getAbsolutePath());
        }} catch (NullPointerException e) {
                        List.add(f.getAbsolutePath());
      }
    return List;
    }
}
